package com.wx.tnsenterprise.mapper;

import com.wx.tnsenterprise.model.dto.FunnelEntDto;
import com.wx.tnsenterprise.model.po.EnterprisePo;
import com.wx.tnsenterprise.model.vo.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 林建权
 * @version 1.0
 * @date 2020/7/28 17:41
 */
@Mapper
public interface EnterpriseMapper {
    List<EnterprisePo> findAll();

    int insert(EnterprisePo enterprisePo);

    int update(EnterprisePo enterprisePo);

    int delete(Integer id);

    List<EnterprisePo> findHotEnt(Integer length);

    List<EntNavVo> findEntByFunnel(FunnelEntDto funnelEntDto);

    List<String> findRecHotEnt(Integer length);

    EntDetailTopVo findEntDetailTop(Integer id);

    List<EntDetailHotRecVo> findEntDetailHotRec(Integer id);

    EntDetailBriefVo findEntDetailBrief(Integer id);

    List<EntDetailProductVo> findEntDetailProduct(Integer id);

    List<EntDetailManagerVo> findEntDetailManager(Integer id);

    List<EntDetailHrVo> findEntDetailHr(Integer id);

    Integer findEntDetailRecJobNum(Integer hrId);

    String findEntDetailRecTitle(Integer hrId);

    List<EntDetailRecVo> findEntDetailRec(Integer hrId);

    EnterprisePo findById(Integer id);
}
